using MediatR;
using RBAC.Api.Erroc;
using System.ComponentModel.DataAnnotations;

namespace RBAC.Api.Writh.Command.ContentManagement
{
    /// <summary>
    /// 添加科室
    /// </summary>
    public class AddDepartmentCommand : IRequest<APIResult<object>>
    {
        /// <summary>
        /// 科室名称
        /// </summary>
        [Required]
        [StringLength(50)]
        public string? Name { get; set; }

        /// <summary>
        /// 科室介绍
        /// </summary>
        public string? Introduction { get; set; }

        /// <summary>
        /// 医院ID
        /// </summary>
        [Required]
        public long HospitalId { get; set; }

        /// <summary>
        /// 父级科室ID
        /// </summary>
        public long? ParentId { get; set; }

        /// <summary>
        /// 状态：0-禁用，1-启用
        /// </summary>
        [Required]
        public bool Status { get; set; }
    }
}